package v7_test;

import java.rmi.RemoteException;
import java.util.List;

import cn.egame.client.EGameClientV2;
import cn.egame.common.cache.SCacheClient;
import cn.egame.common.util.Utils;
import cn.egame.interfaces.ConstVar;
import cn.egame.interfaces.ck.EGameCacheKeyV2;
import cn.egame.interfaces.pu.AppParameter;

public class TestConnRmi {
    public static void main(String[] args) {
        try {
            Utils.initLog4j();
            List<AppParameter> appParameters = EGameClientV2.getInstance().listAppParameterByParentId(0, 0, ConstVar.TOPIC_PARENT_ID);
            System.out.println(appParameters);
            List<Integer> gameIds = SCacheClient.getInstance("egame_list").getListInt(EGameCacheKeyV2.listGameIdByTagId(1560));
            System.out.println(gameIds.size());
            System.exit(0);
        } catch (RemoteException e) {

            e.printStackTrace();
        }
    }
}
